package VN.EDU.IMIC.DEVELOPER.TRINHCAOSANG.Exam01.Bai1.Bai1;

/**
 * Created by Sang on 07/03/2016.
 */
public class BinhhanhController {
    private BinhhanhEntity binhhanhEntity;

    public BinhhanhController(BinhhanhEntity binhhanhEntity) {
        this.binhhanhEntity = new BinhhanhEntity();
    }

    public double BHArea(BinhhanhEntity binhhanhEntity) {

        return binhhanhEntity.getArea(binhhanhEntity);

    }

    public double BHPerimeter(BinhhanhEntity binhhanhEntity) {
        return binhhanhEntity.getPerimeter(binhhanhEntity);
    }
}
